function ioi = expan_duration_ioi(notes, i, fs)

if (i == length(notes))
    ioi = 0;
    return
end

ioi = (notes(i+1).onset - notes(i).onset)/fs;
